const Router = require('koa-router')
const categoryRouter = new Router({prefix: '/category'})

const {
  list,
  categoryDetail
} = require('../controllers/category.controller')

categoryRouter.get('/', list)

categoryRouter.get('/:id', categoryDetail)

module.exports = categoryRouter